﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyPiano
{
    public class MusicScore2
    {
        public int soundIndex;
        public bool state;
        public int time;

        public MusicScore2(int soundIndex, bool state, int time)
        {
            this.soundIndex = soundIndex;
            this.state = state;
            this.time = time;
        }
        public MusicScore2(string scoreStr, bool state, int time)
        {
            this.SoundIndex = scoreStr;
            this.state = state;
            this.time = time;
        }

        public string ScoreString
        {
            get
            {
                return Util.SoundIndexToString(this.soundIndex);
            }
        }
        public string SoundIndex
        {
            set
            {
                this.soundIndex = Util.SoundStringToIndex(value);
            }
        }
    }
}
